package calorie.com.calorie.response;

import java.util.List;

public class ConsumptionRecordResponce {

    /**
     * code : 200
     * msg : success
     * data : [{"id":1,"userId":15,"time":1544426471000,"rType":1,"tokenNum":"20","tokenType":"CAL"},{"id":2,"userId":15,"time":1544426471000,"rType":1,"tokenNum":"4","tokenType":"CAL"},{"id":3,"userId":15,"time":1544426471000,"rType":1,"tokenNum":"5","tokenType":"CAL"},{"id":4,"userId":15,"time":1544426471000,"rType":1,"tokenNum":"6","tokenType":"CAL"},{"id":5,"userId":15,"time":1544426471000,"rType":1,"tokenNum":"7","tokenType":"CAL"}]
     */

    private int code;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 1
         * userId : 15
         * time : 1544426471000
         * rType : 1
         * tokenNum : 20
         * tokenType : CAL
         */

        private int id;
        private int userId;
        private long time;
        private int rType;
        private String tokenNum;
        private String tokenType;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public int getRType() {
            return rType;
        }

        public void setRType(int rType) {
            this.rType = rType;
        }

        public String getTokenNum() {
            return tokenNum;
        }

        public void setTokenNum(String tokenNum) {
            this.tokenNum = tokenNum;
        }

        public String getTokenType() {
            return tokenType;
        }

        public void setTokenType(String tokenType) {
            this.tokenType = tokenType;
        }
    }
}
